package com.lonty.intelligence.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author 陈璇
 * @Date 2020/5/28 14:53
 * @Version 1.0
 */
@Mapper
public interface CommunityNotificationUserMapper {

    /**
     * 批量保存社区通知接收人
     * @param ids
     * @param communityNotificationId
     * @return
     */
    int saveBatchCommunityNotificationUser(@Param("ids") String[] ids,@Param("communityNotificationId") String communityNotificationId);

    /**
     * 统计用户未读
     * @param userInfoId
     * @return
     */
    int countUnread(String userInfoId);

    /**
     * 修改社区通知状态
     * @param userInfoId
     * @param communityNotificationId
     * @return
     */
    int modifyStatus(@Param("userInfoId") String userInfoId,@Param("communityNotificationId") String communityNotificationId);

}
